//
//  YDBTManager.h
//  IngCard
//
//  Created by kf on 2017/7/13.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    BTWriting,
    BTIdle,
} YDBTMessageStatus;


#define BTMESSAGE [YDBTMessageManager sharedInstance]


@interface YDBTMessageManager : NSObject

@property(nonatomic, copy) void (^error)(void);

+ (instancetype)sharedInstance;

-(void) checkStatusWithComplete:(void (^)(BOOL success))onComplete;

-(void) readWithWithComplete:(void (^)(BOOL success))onComplete;

-(void) writeWithWithComplete:(void (^)(BOOL success))onComplete;

-(void) clean;

-(void) run;

@end
